package com.yuyou.train.lesson.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.train.service.api.lesson.dto.ExamDetailDTO;
import com.yuyou.train.service.api.lesson.dto.ExamPageDTO;
import com.yuyou.train.service.api.lesson.entity.ResourceExam;
import com.yuyou.train.util.bean.Pagination;

@Mapper
public interface ResourceExamMapper {
    int deleteByPrimaryKey(String id);

    int insert(ResourceExam record);

    ResourceExam selectByPrimaryKey(String id);
    
    ExamDetailDTO selectDetailByPrimaryKey(String id);
    

    int updateByPrimaryKeySelective(ResourceExam record);

    List<ExamPageDTO> findExamPageList(Pagination<ExamPageDTO> p);
    
    int findExamPageCount(Pagination<ExamPageDTO> p);

    int batchUpdateStatus(@Param(value="ids")List<String> ids , @Param(value="isUse")String isUse);
    
}